class {
    onMount() {
        window.app = this;
    }
}
<div>
    <app-hello key="hello"/>
</div>
